package org.example.singleton;

public class lazySingle {
    // 普通懒汉式，线程不安全
    private static  lazySingle s;

    public lazySingle() {
    }

    private static lazySingle getInstance(){
        if (s == null){
            s =  new lazySingle();
        }
        return s;
    }
}
